package com.mf.entity.request.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2024/7/9 10:14
 * Description: 用户注册
 */
@Data
public class UserRegisterRequest {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, message = "用户名长度在6-10之间")
    @Schema(description = "用户名", example = "mf")
    private String name;

    @NotBlank(message = "姓名不能为空")
    @Size(min = 2, message = "姓名长度在6-10之间")
    @Schema(description = "姓名", example = "廖mf")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6,message = "密码长度不能小于6")
    @Schema(description = "密码", example = "123456")
    private String pwd;

    @Schema(description = "系统编号", example = "ehr")
    @NotBlank(message = "系统编号不能为空")
    private String systemCode;

    @NotBlank(message = "验证码不能为空")
    @Size(min = 4, max = 4, message = "验证码长度为6")
    private String captcha;
}
